package it.upnp.controlpoint;
import org.apache.log4j.Logger;
import org.cybergarage.upnp.ControlPoint;
import org.cybergarage.upnp.Device;
import org.cybergarage.upnp.DeviceList;
import org.cybergarage.upnp.device.SearchResponseListener;
import org.cybergarage.upnp.ssdp.SSDPPacket;


public class MyControlPoint extends ControlPoint implements SearchResponseListener {
	
	private static final Logger logger = Logger.getLogger(MyControlPoint.class);
	
	public MyControlPoint() {
		super();
		
		addSearchResponseListener(this);
	}
	
	
	
	/***************************************************/
	/******************** Listeners ********************/
	/***************************************************/
	
	public void deviceSearchResponseReceived(SSDPPacket packet)
	{
		String uuid = packet.getUSN();
		String st = packet.getST();
		String url = packet.getLocation();
		logger.debug("device search res : uuid = " + uuid + ", ST = " + st + ", location = " + url); 
	}
}
